﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="donhang.aspx.cs" Inherits="UI.Admin.donhang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style5
        {
            height: 95px;
            width: 674px;
        }
        .style6
        {
            /*height: 250px;*/
            width: 785px;
        }
        .style7
        {
            height: 117px;
            width: 674px;
        }
            .auto-style1 {
                width: 409px;
            }
            .auto-style3 {
            height: 15px;
            width: 64px;
        }
        .auto-style5 {
            width: 209px;
        }
        .auto-style6 {
            height: 15px;
            width: 134px;
        }
            .auto-style8 {
            width: 272px;
        }
        .auto-style11 {
            height: 15px;
            width: 291px;
        }
        .auto-style12 {
            height: 15px;
            width: 380px;
        }
            </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table align="center" border="0" cellpadding="0" cellspacing="0" 
        style="width: 976px">
        <tr>
            <td class="style6">
                <asp:MultiView ID="MultiView1" runat="server">
                    <asp:View ID="View1" runat="server">
                        <table align="center" border="0" cellpadding="5" cellspacing="5" 
                            style="width: 722px">

                            <tr>
                                <td class="style5">
                                    <table>
                                        <tr>
                                            <td style="width: 170px">
                                                Tìm Kiếm Nhà Xuất Bản:
                                            </td>
                                            <td align="center" style="width; 300px">
                                                <asp:TextBox ID="txttim" Width="250px" runat="server"></asp:TextBox>
                                            </td>
                                            <td style="width: 200px">
                                                <asp:Button ID="btntmkiem" runat="server" BackColor="#A52B2B" ForeColor="White" Text="Tìm Kiếm" OnClick="btntmkiem_Click"
                                                    Style="height: 26px" />
                                                <asp:Button ID="Button1" runat="server" BackColor="#A52B2B" ForeColor="White" onclick="Button1_Click" Text="Trở về" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" class="style7">
                                    <br />
                                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                        ForeColor="Black" OnPageIndexChanging="GridView1_PageIndexChanging"
                                        OnSelectedIndexChanged="GridView1_SelectedIndexChanged" AllowPaging="True" PageSize="5"
                                        OnRowDeleting="GridView1_RowDeleting" BackColor="White" 
                                        BorderColor="#CCCCCC" BorderStyle="Dotted" BorderWidth="1px" Width="960px">
                                        <Columns>
                                            <asp:CommandField ShowSelectButton="True" HeaderText="Chọn sản phẩm" />
                                            <asp:CommandField ShowDeleteButton="True" HeaderText="Xóa sản phẩm" />
                                            <asp:BoundField DataField="MaDH" HeaderText="Mã Đơn hàng" />
                                            <asp:BoundField DataField="MaKH" HeaderText="Mã Khách Hàng" />                                      
                                            <asp:BoundField DataField="HoTenNguoiNhan" HeaderText="người nhận" />
                                            <asp:BoundField DataField="DiaChi" HeaderText="Địa Chỉ" />  
                                            <asp:BoundField DataField="SDT" HeaderText="Số điện thoại" />
                                            <asp:BoundField DataField="NgayMua" HeaderText="ngày mua " />                                      
                                            <asp:BoundField DataField="NgayGiao" HeaderText="ngày giao" />
                                            <asp:BoundField DataField="DaGiao" HeaderText="đã giao" />                                         
                                        </Columns>
                                        <EmptyDataTemplate>
                                            Nhà Xuất Bản Không Tồn Tại !
                                        </EmptyDataTemplate>
                                        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                                        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                                        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                                        <SortedAscendingCellStyle BackColor="#F7F7F7" />
                                        <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
                                        <SortedDescendingCellStyle BackColor="#E5E5E5" />
                                        <SortedDescendingHeaderStyle BackColor="#242121" />
                                    </asp:GridView>
                                </td>
                            </tr>
                            
                        </table>
                    </asp:View>
                    <asp:View ID="VIew2" runat="server">
                        <table>
                             <tr>
                             <td class="auto-style4">
                             <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                        ForeColor="Black" OnPageIndexChanging="GridView1_PageIndexChanging"
                                        OnSelectedIndexChanged="GridView1_SelectedIndexChanged" AllowPaging="True" PageSize="5"
                                        OnRowDeleting="GridView1_RowDeleting" BackColor="White" 
                                        BorderColor="#CCCCCC" BorderStyle="Dotted" BorderWidth="1px" Width="960px">
                                        <Columns>
                                            <asp:BoundField DataField="TenSP" HeaderText="Tên Sản Phẩm" />
                                            <asp:BoundField DataField="SoLuong" HeaderText="Số Lượng" />                                      
                                            <asp:BoundField DataField="DonGia" HeaderText="Đơn Giá" />                                        
                                        </Columns>
                                        <EmptyDataTemplate>
                                            Nhà Xuất Bản Không Tồn Tại !
                                        </EmptyDataTemplate>
                                        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                                        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                                        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                                        <SortedAscendingCellStyle BackColor="#F7F7F7" />
                                        <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
                                        <SortedDescendingCellStyle BackColor="#E5E5E5" />
                                        <SortedDescendingHeaderStyle BackColor="#242121" />
                                    </asp:GridView>
                                 </td>
                         </tr>
                        </table>
                        <table cellpadding="5" cellspacing="5" style="width: 970px">
                            <tr>
                                <td style="font-weight: bold; font-size: 15px" align="right" class="auto-style12">
                                    PT Thanh Toán:
                                </td>
                                <td align="left" class="auto-style5">
                                    <asp:DropDownList ID="cpptthanhtoan" runat="server" Height="16px" Width="196px">
                                    </asp:DropDownList>
                                </td>
                                <td style="font-weight: bold; font-size: 15px" align="right" class="auto-style11">
                                    HT Giao Hàng:
                                </td>
                                <td align="left" class="auto-style8">
                                    <asp:DropDownList ID="cphtgiaohang" runat="server" Height="20px" Width="208px">
                                    </asp:DropDownList>
                                </td>
                            </tr>   
                               
                            <tr>
                                    <td style="font-weight: bold; font-size: 15px" align="right" class="auto-style12">
                                        Tổng Tiền:
                                    </td>
                                    <td style="font-weight: bold; font-size: 15px" align="right" class="auto-style3">
                                        <asp:Label ID="lbtongtien" runat="server" Text="Label"></asp:Label>
                                    </td>
                                <td style="font-weight: bold; font-size: 15px" align="right" class="auto-style11">
                                    Đơn hàng:
                                </td>
                                <td align="left" class="auto-style8">
                                    <asp:Label ID="lbmadh" runat="server" Text="Label"></asp:Label>
                                </td>
                                 <td style="font-weight: bold; font-size: 15px" align="right" class="auto-style6">
                                    Đã giao:
                                </td>
                                <td align="left" class="auto-style1">
                                    <asp:CheckBox ID="chkdagiao" runat="server" Text="Đã Giao" />
                                </td>
                            </tr>


                           
                            <tr>
                                <td style="font-weight: bold; font-size: 15px" align="right" class="auto-style12">
                                </td>
                                <td align="left" class="auto-style5">
                                    <asp:Button ID="btnupdate" runat="server"  BackColor="#A52B2B" ForeColor="White" Width="60px" Text="Update" OnClick="btnupdate_Click"
                                        ValidationGroup="hang" />
                                        <asp:Button ID="btnback" runat="server" BackColor="#A52B2B" ForeColor="White" Width="74px" Text="Trở Về" OnClick="btnback_Click" />
                                          
                                   
                                </td>

                            </tr>
                        </table>
                    </asp:View>
                </asp:MultiView>
            </td>
        </tr>
    </table>
</asp:Content>
